package cn.com.dcsgo.library.admin.mapper;

import cn.com.dcsgo.library.admin.domain.po.Book;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author Dcsgo
 * @since 2024-09-02
 */
@Mapper
public interface BooksMapper extends BaseMapper<Book> {
    @Select("select count(isbn) from books where isbn = #{isbn}")
     Long countIsbn(@Param("isbn") String isbn);
}
